package com.heima.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.pojo.dto.MachineDto;
import com.heima.pojo.dto.VendingMachine;
import com.heima.pojo.dto.VendingMachineQuery;
import com.heima.pojo.dto.VmType;
import com.heima.pojo.vo.PageVo;
import com.heima.pojo.vo.VendingMachineVo;
import com.heima.service.IVendingMachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 存折
 * @since 2024-10-20
 */
@RestController
@RequestMapping("/api/vm-service/vm")
public class VendingMachineController {


    @Autowired
    private IVendingMachineService iVendingMachineService;

    @GetMapping("/search")
    public PageVo<VendingMachineVo> query(VendingMachineQuery vendingMachineQuery) {
        return iVendingMachineService.query(vendingMachineQuery);
    }


}
